using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class StatusNotifyRequest : GeneratedMessageLite<StatusNotifyRequest, StatusNotifyRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<StatusNotifyRequest, StatusNotifyRequest.Builder>
		{
			private bool resultIsReadOnly;
			private StatusNotifyRequest result;
			protected override StatusNotifyRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override StatusNotifyRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override StatusNotifyRequest DefaultInstanceForType
			{
				get
				{
					return StatusNotifyRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public uint Code
			{
				get
				{
					return this.result.Code;
				}
				set
				{
					this.SetCode(value);
				}
			}
			public string FromUserName
			{
				get
				{
					return this.result.FromUserName;
				}
				set
				{
					this.SetFromUserName(value);
				}
			}
			public string ToUserName
			{
				get
				{
					return this.result.ToUserName;
				}
				set
				{
					this.SetToUserName(value);
				}
			}
			public string ClientMsgId
			{
				get
				{
					return this.result.ClientMsgId;
				}
				set
				{
					this.SetClientMsgId(value);
				}
			}
			public Builder()
			{
				this.result = StatusNotifyRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(StatusNotifyRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private StatusNotifyRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					StatusNotifyRequest other = this.result;
					this.result = new StatusNotifyRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override StatusNotifyRequest.Builder Clear()
			{
				this.result = StatusNotifyRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override StatusNotifyRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new StatusNotifyRequest.Builder(this.result);
				}
				return new StatusNotifyRequest.Builder().MergeFrom(this.result);
			}
			public override StatusNotifyRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override StatusNotifyRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is StatusNotifyRequest)
				{
					return this.MergeFrom((StatusNotifyRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override StatusNotifyRequest.Builder MergeFrom(StatusNotifyRequest other)
			{
				return this;
			}
			public override StatusNotifyRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override StatusNotifyRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(StatusNotifyRequest._statusNotifyRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = StatusNotifyRequest._statusNotifyRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 16u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseRequest.Builder builder = BaseRequest.CreateBuilder();
							if (this.result.hasBaseRequest)
							{
								builder.MergeFrom(this.BaseRequest);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseRequest = builder.BuildPartial();
							continue;
						}
						if (num3 == 16u)
						{
							this.result.hasCode = input.ReadUInt32(ref this.result.code_);
							continue;
						}
					}
					else
					{
						if (num3 == 26u)
						{
							this.result.hasFromUserName = input.ReadString(ref this.result.fromUserName_);
							continue;
						}
						if (num3 == 34u)
						{
							this.result.hasToUserName = input.ReadString(ref this.result.toUserName_);
							continue;
						}
						if (num3 == 42u)
						{
							this.result.hasClientMsgId = input.ReadString(ref this.result.clientMsgId_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public StatusNotifyRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public StatusNotifyRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public StatusNotifyRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public StatusNotifyRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public StatusNotifyRequest.Builder SetCode(uint value)
			{
				this.PrepareBuilder();
				this.result.hasCode = true;
				this.result.code_ = value;
				return this;
			}
			public StatusNotifyRequest.Builder ClearCode()
			{
				this.PrepareBuilder();
				this.result.hasCode = false;
				this.result.code_ = 0u;
				return this;
			}
			public StatusNotifyRequest.Builder SetFromUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasFromUserName = true;
				this.result.fromUserName_ = value;
				return this;
			}
			public StatusNotifyRequest.Builder ClearFromUserName()
			{
				this.PrepareBuilder();
				this.result.hasFromUserName = false;
				this.result.fromUserName_ = "";
				return this;
			}
			public StatusNotifyRequest.Builder SetToUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasToUserName = true;
				this.result.toUserName_ = value;
				return this;
			}
			public StatusNotifyRequest.Builder ClearToUserName()
			{
				this.PrepareBuilder();
				this.result.hasToUserName = false;
				this.result.toUserName_ = "";
				return this;
			}
			public StatusNotifyRequest.Builder SetClientMsgId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasClientMsgId = true;
				this.result.clientMsgId_ = value;
				return this;
			}
			public StatusNotifyRequest.Builder ClearClientMsgId()
			{
				this.PrepareBuilder();
				this.result.hasClientMsgId = false;
				this.result.clientMsgId_ = "";
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int CodeFieldNumber = 2;
		public const int FromUserNameFieldNumber = 3;
		public const int ToUserNameFieldNumber = 4;
		public const int ClientMsgIdFieldNumber = 5;
		private static readonly StatusNotifyRequest defaultInstance;
		private static readonly string[] _statusNotifyRequestFieldNames;
		private static readonly uint[] _statusNotifyRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasCode;
		private uint code_;
		private bool hasFromUserName;
		private string fromUserName_ = "";
		private bool hasToUserName;
		private string toUserName_ = "";
		private bool hasClientMsgId;
		private string clientMsgId_ = "";
		private int memoizedSerializedSize = -1;
		public static StatusNotifyRequest DefaultInstance
		{
			get
			{
				return StatusNotifyRequest.defaultInstance;
			}
		}
		public override StatusNotifyRequest DefaultInstanceForType
		{
			get
			{
				return StatusNotifyRequest.DefaultInstance;
			}
		}
		protected override StatusNotifyRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public uint Code
		{
			get
			{
				return this.code_;
			}
		}
		public string FromUserName
		{
			get
			{
				return this.fromUserName_;
			}
		}
		public string ToUserName
		{
			get
			{
				return this.toUserName_;
			}
		}
		public string ClientMsgId
		{
			get
			{
				return this.clientMsgId_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasCode && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasCode)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.Code);
				}
				if (this.hasFromUserName)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.FromUserName);
				}
				if (this.hasToUserName)
				{
					num += CodedOutputStream.ComputeStringSize(4, this.ToUserName);
				}
				if (this.hasClientMsgId)
				{
					num += CodedOutputStream.ComputeStringSize(5, this.ClientMsgId);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private StatusNotifyRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] statusNotifyRequestFieldNames = StatusNotifyRequest._statusNotifyRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, statusNotifyRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasCode)
			{
				output.WriteUInt32(2, statusNotifyRequestFieldNames[2], this.Code);
			}
			if (this.hasFromUserName)
			{
				output.WriteString(3, statusNotifyRequestFieldNames[3], this.FromUserName);
			}
			if (this.hasToUserName)
			{
				output.WriteString(4, statusNotifyRequestFieldNames[4], this.ToUserName);
			}
			if (this.hasClientMsgId)
			{
				output.WriteString(5, statusNotifyRequestFieldNames[1], this.ClientMsgId);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasCode)
			{
				num ^= this.code_.GetHashCode();
			}
			if (this.hasFromUserName)
			{
				num ^= this.fromUserName_.GetHashCode();
			}
			if (this.hasToUserName)
			{
				num ^= this.toUserName_.GetHashCode();
			}
			if (this.hasClientMsgId)
			{
				num ^= this.clientMsgId_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			StatusNotifyRequest statusNotifyRequest = object_0 as StatusNotifyRequest;
			return statusNotifyRequest != null && (this.hasBaseRequest == statusNotifyRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(statusNotifyRequest.baseRequest_))) && (this.hasCode == statusNotifyRequest.hasCode && (!this.hasCode || this.code_.Equals(statusNotifyRequest.code_))) && (this.hasFromUserName == statusNotifyRequest.hasFromUserName && (!this.hasFromUserName || this.fromUserName_.Equals(statusNotifyRequest.fromUserName_))) && (this.hasToUserName == statusNotifyRequest.hasToUserName && (!this.hasToUserName || this.toUserName_.Equals(statusNotifyRequest.toUserName_))) && (this.hasClientMsgId == statusNotifyRequest.hasClientMsgId && (!this.hasClientMsgId || this.clientMsgId_.Equals(statusNotifyRequest.clientMsgId_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<StatusNotifyRequest, StatusNotifyRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<StatusNotifyRequest, StatusNotifyRequest.Builder>.PrintField("Code", this.hasCode, this.code_, writer);
			GeneratedMessageLite<StatusNotifyRequest, StatusNotifyRequest.Builder>.PrintField("FromUserName", this.hasFromUserName, this.fromUserName_, writer);
			GeneratedMessageLite<StatusNotifyRequest, StatusNotifyRequest.Builder>.PrintField("ToUserName", this.hasToUserName, this.toUserName_, writer);
			GeneratedMessageLite<StatusNotifyRequest, StatusNotifyRequest.Builder>.PrintField("ClientMsgId", this.hasClientMsgId, this.clientMsgId_, writer);
		}
		public static StatusNotifyRequest ParseFrom(byte[] data)
		{
			return StatusNotifyRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private StatusNotifyRequest MakeReadOnly()
		{
			return this;
		}
		public static StatusNotifyRequest.Builder CreateBuilder()
		{
			return new StatusNotifyRequest.Builder();
		}
		public override StatusNotifyRequest.Builder ToBuilder()
		{
			return StatusNotifyRequest.CreateBuilder(this);
		}
		public override StatusNotifyRequest.Builder CreateBuilderForType()
		{
			return new StatusNotifyRequest.Builder();
		}
		public static StatusNotifyRequest.Builder CreateBuilder(StatusNotifyRequest prototype)
		{
			return new StatusNotifyRequest.Builder(prototype);
		}
		static StatusNotifyRequest()
		{
			StatusNotifyRequest.defaultInstance = new StatusNotifyRequest().MakeReadOnly();
			StatusNotifyRequest._statusNotifyRequestFieldNames = new string[]
			{
				"BaseRequest",
				"ClientMsgId",
				"Code",
				"FromUserName",
				"ToUserName"
			};
			StatusNotifyRequest._statusNotifyRequestFieldTags = new uint[]
			{
				10u,
				42u,
				16u,
				26u,
				34u
			};
			object.ReferenceEquals(micromsg.Proto.StatusNotifyRequest.Descriptor, null);
		}
	}
}
